import { httpInstance } from '@/utils/request'

interface FetchNodeListAPIResData {
  code: number
  data: ProjectNode[]
  msg: string
  time: string
}

export function fetchNodeListAPI(projectTypeId: string, identity?: string) {
  return httpInstance.get<FetchNodeListAPIResData>(
    'api/Project_extend/projectTypeNodeList',
    { params: { type_id: projectTypeId, identity } },
  )
}
